// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_CHK_QUALITY_CHECKING_ITEM_DETAIL
// * CreateDate    : 2011-11-23 11:20:26
// * Creater       : CodeSmith
// * LastChangeDate: 2011-11-23 11:20:26
// * LastChanger   : 2011-11-23 11:20:26
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;

namespace ESOL.Common.Entity
{
	[Serializable]
	public partial class ChkQualityCheckingItemDetailEntity : EntityBase
    {
        public ChkQualityCheckingItemDetailTable TableSchema
        {
            get
            {
                return ChkQualityCheckingItemDetailTable.Current;
            }
		}
		
		public ChkQualityCheckingItemDetailEntity()
        {

        }
		
		public ChkQualityCheckingItemDetailEntity(DataRow dr)
        {
			if(dr == null)
			{
				return;
			}
			this.CheckingItemDetailId = Convert.ToString(CommonFunctions.ToObject(dr["CHECKING_ITEM_DETAIL_ID"]));
			this.CheckingItemId = Convert.ToString(CommonFunctions.ToObject(dr["CHECKING_ITEM_ID"]));
			this.Result = Convert.ToString(CommonFunctions.ToObject(dr["RESULT"]));
			this.Qty = Convert.ToDecimal(CommonFunctions.ToObject(dr["QTY"]));
			this.Description = Convert.ToString(CommonFunctions.ToObject(dr["DESCRIPTION"]));
			this.NgCode = Convert.ToString(CommonFunctions.ToObject(dr["NG_CODE"]));
			this.Advice = Convert.ToString(CommonFunctions.ToObject(dr["ADVICE"]));
        }
		
		public ChkQualityCheckingItemDetailEntity(DataRowView dr)
        {
			if(dr == null)
			{
				return;
			}
			this.CheckingItemDetailId = Convert.ToString(CommonFunctions.ToObject(dr["CHECKING_ITEM_DETAIL_ID"]));
			this.CheckingItemId = Convert.ToString(CommonFunctions.ToObject(dr["CHECKING_ITEM_ID"]));
			this.Result = Convert.ToString(CommonFunctions.ToObject(dr["RESULT"]));
			this.Qty = Convert.ToDecimal(CommonFunctions.ToObject(dr["QTY"]));
			this.Description = Convert.ToString(CommonFunctions.ToObject(dr["DESCRIPTION"]));
			this.NgCode = Convert.ToString(CommonFunctions.ToObject(dr["NG_CODE"]));
			this.Advice = Convert.ToString(CommonFunctions.ToObject(dr["ADVICE"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return ChkQualityCheckingItemDetailTable.Current;
            }
        }
		
		#region Perporty List
        public string CheckingItemDetailId
        {
            get { return Convert.ToString(GetData(ChkQualityCheckingItemDetailTable.C_CHECKING_ITEM_DETAIL_ID)); }
            set { SetData(ChkQualityCheckingItemDetailTable.C_CHECKING_ITEM_DETAIL_ID, value); }
        }
		
        public string CheckingItemId
        {
            get { return Convert.ToString(GetData(ChkQualityCheckingItemDetailTable.C_CHECKING_ITEM_ID)); }
            set { SetData(ChkQualityCheckingItemDetailTable.C_CHECKING_ITEM_ID, value); }
        }
		
        public string Result
        {
            get { return Convert.ToString(GetData(ChkQualityCheckingItemDetailTable.C_RESULT)); }
            set { SetData(ChkQualityCheckingItemDetailTable.C_RESULT, value); }
        }
		
        public decimal Qty
        {
            get { return Convert.ToDecimal(GetData(ChkQualityCheckingItemDetailTable.C_QTY)); }
            set { SetData(ChkQualityCheckingItemDetailTable.C_QTY, value); }
        }
		
        public string Description
        {
            get { return Convert.ToString(GetData(ChkQualityCheckingItemDetailTable.C_DESCRIPTION)); }
            set { SetData(ChkQualityCheckingItemDetailTable.C_DESCRIPTION, value); }
        }
		
        public string NgCode
        {
            get { return Convert.ToString(GetData(ChkQualityCheckingItemDetailTable.C_NG_CODE)); }
            set { SetData(ChkQualityCheckingItemDetailTable.C_NG_CODE, value); }
        }
		
        public string Advice
        {
            get { return Convert.ToString(GetData(ChkQualityCheckingItemDetailTable.C_ADVICE)); }
            set { SetData(ChkQualityCheckingItemDetailTable.C_ADVICE, value); }
        }
		
		#endregion
	}
	
	
}	

